package anthology.daily_question._24_11;
//https://leetcode.cn/problems/find-if-digit-game-can-be-won/description/?envType=daily-question&envId=2024-11-30
public class _3232判断是否可以赢得数字游戏 {
    class Solution {
        public boolean canAliceWin(int[] nums) {
            int singleDigitSum = 0;
            int doubleDigitSum = 0;
            for (int num : nums) {
                if (num < 10) {
                    singleDigitSum += num;
                } else {
                    doubleDigitSum += num;
                }
            }
            return singleDigitSum != doubleDigitSum;
        }
    }
}
